#ifndef _HAL_UART_H_
#define _HAL_UART_H_

#include "stm32f10x.h"

typedef enum
{
    BaudRate_9600 = 9600,
    BaudRate_115200 = 115200,
}BuadRateID;

#define DBG_MSG(fmt,arg...)  printf(""fmt"",##arg)
#define DBG_ERR(fmt,arg...)  printf("%s "fmt"",__FUNCTION__,##arg)
#define CHKPNT               printf("CHKFILE %d\t%s\r\n",__LINE__,__FILE__)

void hal_uart1_init(BuadRateID UartBuadRate);
void hal_uart2_init(BuadRateID UartBuadRate);






#define hal_debug_int hal_uart1_init

#endif
